package com.db.patterns.client;

import com.db.patterns.cache.Cache;
import com.db.patterns.cache.HashMapCache;
import com.db.patterns.cache.client.AbstractClientCache;
import com.db.patterns.protocol.Protocol;
import com.db.patterns.transport.client.ClientTransport;

/**
 * @author nulls.narik
 */
public class HashMapClient extends AbstractClientCache implements Client {

    private final HashMapCache cache = new HashMapCache();

    protected HashMapClient(ClientTransport transport, Protocol protocol) {
        super(transport, protocol);
    }

    @Override
    protected Cache getCache() {
        return cache;
    }
}
